#include "threadPool.h"

typedef struct node_s{
    char fname[25];
    struct node_s* next;
}node_t;

typedef struct stack_s{
    int stackSize;
    node_t* top;
}stack;  

typedef struct user_s{
    char path[256];      //当前路径
    stack* curWorkDir;   //当前工作目录
    stack* tmpStack;
    char username[256];
    char passwd[256];
}user_t;

//定义一个初始化函数
void initUser(user_t* user,char* username, char* passwa);

//入栈
int Push(stack* curWorkDir,char* fname);
//出栈
int Pop(stack* curWorkDir, char* fname);

//查看栈顶
int Peek(stack* curWorkDir, char* fname);
//判空
int isEmpty(stack* curWorkDir);
int isEmpty(stack* curWorkDir);